package com.bing.springboot;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author 徐
 * @version 1.0
 */
@SpringBootApplication
public class MainApp {
    public static void main(String[] args) {

        //启动springboot程序
        //提出问题：当我们执行run方法时，怎么就启动我们的内置的tomcat?
        //在分析run方法的底层机制的基础上，我们直接尝试实现
        ConfigurableApplicationContext ioc =
                SpringApplication.run(MainApp.class, args);

        System.out.println("hello ioc");
    }
}
